package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Answer;
import cn.wolfcode.trip.base.query.AnswerQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAnswerService {

    PageInfo selectAnswerByQueestionId(AnswerQuery qo,Long questionId);

    List<Answer> listAll();

    Answer get(Long id);

    void saveReplyByQuestionId(Answer answer, Long questionId);

    int countAnswerNums(Long questionId);
}
